package com.wang.mall.service;

import com.wang.mall.to.SeckillSkuRedisTo;

import java.util.List;

public interface SkillService {
    void uploadSkillProduct();

    List<SeckillSkuRedisTo> getCurrentSkillProduct();

    /**
     * 获取当前的秒杀商品详情
     * @param productId
     * @return
     */
    SeckillSkuRedisTo productSkillInfo(Long productId,Integer session);

    /**
     * 开始秒杀
     * @param productId
     * @param sessionId
     * @param code
     * @param count
     * @return
     */
    String kill(Long productId, Integer sessionId, String code, Integer count);
}
